import React from "react";
import LearnContext3 from "./learn-context3";
import MyContext from './context'

export default class LearnContext2 extends React.Component {
  
  static contextType = MyContext
  
  render() {
    console.log(this.context.childMsg, '兄弟组件接收到的')
    return (
      <div>
        <div>儿子</div>
        <LearnContext3></LearnContext3>
      </div>
    );
  }
}
